package com.zhisheng.day10_tlias.aop;
/*
    对DeptServiceImpl实现类中带有MyBJ注解的方法进行后置增强


 */

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAop3 {

    @AfterReturning(pointcut = "@annotation(com.zhisheng.day10_tlias.anno.MyBJ)", returning = "res")
    public void myBefore(Object res){
        System.err.println("我们的后置通知执行了..........................获取的方法返回的结果是:"+ res);
    }

}
